package com.iteaj.demo.server;

import com.iteaj.network.ProtocolType;

public enum ServerProtocolType implements ProtocolType {
    PlatformRequest("平台主动请求客户端", "01"),
    ClientRequest("客户端主动请求平台", "05"),
        ;
    private String code;
    private String desc;

    ServerProtocolType(String desc, String code) {
        this.desc = desc;
        this.code = code;
    }

    @Override
    public Enum getType() {
        return this;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    public String getCode() {
        return code;
    }
}
